CC = g++

TARGET = client
SRC = ../osk/*.cpp ../common/source/*.cpp source/*.cpp
INCLUDES = -I ../osk -I../common/include -I/usr/include/SDL
CFLAGS = -g -DLINUX 
DEBUGFLAGS = -DDEBUG_PROTOCOL
LIBS = -lmxml -lpthread -lSDL -lSDL_image -lSDL_ttf

default:
	cp ../common/images/* img/
	cp ../common/fonts/*  font/
	cp ../osk/*.xml config/
	$(CC) $(CFLAGS) $(SRC) $(INCLUDES) $(LIBS) -o $(TARGET)

debug:
	cp ../common/images/* img/
	cp ../common/fonts/*  font/
	cp ../osk/*.xml config/
	$(CC) $(CFLAGS) $(DEBUGFLAGS) $(SRC) $(INCLUDES) $(LIBS) -o $(TARGET)

clean:
	rm img/*
	rm font/*
	rm config/*
	rm *.o $(TARGET)
